http://nginxlibrary.com/resolving-no-input-file-specified-error/

Now, there are many things wrong with this configuration. An obvious and glaring issue is the root directive 
in the location / block. When the root is defined inside the location block, it is available/defined for that block only.